package commercial.src;
public interface Payment {
    void pay(double amount);
}

class CreditCardPayment implements Payment {
    public void pay(double amount) {
        System.out.println("使用信用卡支付: " + amount + " 元");
    }
}
class AlipayPayment implements Payment {
    public void pay(double amount) {
        System.out.println("使用支付宝支付: " + amount + " 元");
    }
}
 class WeChatPayment implements Payment {
    public void pay(double amount) {
        System.out.println("使用微信支付: " + amount + " 元");
    }
}
